﻿#ifndef SERVER_H
#define SERVER_H

#include <QObject>
#include <QTimer>
#include <QTcpServer>
#include <QTcpSocket>
#include <QDebug>
#include <QList>

class Server : public QTcpServer
{
    Q_OBJECT
public:
    explicit Server(QObject *parent = nullptr);

    void SendTCP(QString da);
private:
    QList<qintptr> socketList;

private:
    virtual void incomingConnection(qintptr socketDescriptor);
    void receive(QString arr);
    void receive_heart(QString arr);
    void Connect(bool bo);


signals:
    void Senddata(QString arr);
    void sigdata(QString arr);
    void SIGCon(bool bo);
    void SIGDC1_1(QString arr);
    void SIGDC1_2(QString arr);
    void SIGDC2_1(QString arr);
    void SIGDC2_2(QString arr);
    void SIGDC3_1(QString arr);
    void SIGDC3_2(QString arr);
    void SIGRs4851(QString arr);
    void SIGRs4852(QString arr);

public slots:

};

#endif // SERVER_H
